/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author        Notes
 * 2021-10-18     Meco Man      First version
 */

#ifndef LV_CONF_H
#define LV_CONF_H

#define LV_COLOR_16_SWAP    1
#define LV_COLOR_DEPTH      16

#define LV_USE_PERF_MONITOR 1
// #define LV_USE_PERF_MONITOR_POS LV_ALIGN_CENTER

#define LV_FONT_MONTSERRAT_12 1
#define LV_FONT_MONTSERRAT_18 1

#define LV_USE_DEMO_BENCHMARK 1  /*add by xujc*/
#define LV_USE_DEMO_WIDGETS 1    /*add by xujc*/
#define LV_USE_DEMO_KEYPAD_AND_ENCODER 1      /*add by xujc*/

#define LV_USE_FS_POSIX 1
#if LV_USE_FS_POSIX
    #define LV_FS_POSIX_LETTER 'A'     /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/
    #define LV_FS_POSIX_PATH ""         /*Set the working directory. File/directory paths will be appended to it.*/
    #define LV_FS_POSIX_CACHE_SIZE 1024    /*>0 to cache this number of bytes in lv_fs_read()*/
#endif

#define LV_USE_PNG 1
#define LV_USE_BMP 1
#define LV_USE_SJPG 1

//非常有用. 折腾了一晚上, 用这个宏解决了bmp/jpg不能显示的问题
#define LV_USE_LOG 1
#define LV_LOG_LEVEL LV_LOG_LEVEL_WARN

#endif
